//--------------------------------------------------------------
//
// Qizhi Zhang 
// ezhung@gmail.com
// http://www.moorwind.com
//
//--------------------------------------------------------------
package reader.core
{
	
	public class ReaderResource
	{
		////////////////////////////////////////////////////////////////////////////////
		//resource
		
		//----------------------------------------------------------------------------
		//
		// XML
		//
		//----------------------------------------------------------------------------
		
		[Bindable] public var resource:XML;
		
		//----------------------------------------------------------------------------
		//
		// Image
		//
		//----------------------------------------------------------------------------
		[Embed(source="../assets/icon/feedicon_012.png")]
		[Bindable] public var RssAddSubscribe:Class;
		
		[Embed(source="../assets/icon/fold_closed.gif")]
		[Bindable] public var RssFolderClose:Class;
		
		[Embed(source="../assets/icon/fold_open.gif")]
		[Bindable] public var RssFolderOpen:Class;
		
		[Embed(source="../assets/icon/feedicon_002.png")]
		[Bindable] public var RssItem:Class;
		
		[Embed(source="../assets/icon/feedicon_013.gif")]
		[Bindable] public var RssRemoveSubscribe:Class;
		
		[Embed(source="../assets/icon/feedicon_015.gif")]
		[Bindable] public var RssStatusOK:Class;
		
		[Embed(source="../assets/icon/feedicon_016.gif")]
		[Bindable] public var RssStatusNull:Class;
		
		[Embed(source="../assets/icon/feedicon_star_inactive.png")]
		[Bindable] public var RssStarInactive:Class;
		
		[Embed(source="../assets/icon/feedicon_star_active.png")]
		[Bindable] public var RssStarActive:Class;
		
		[Embed(source="../assets/icon/feedicon_017.gif")]
		[Bindable] public var WriterNewPhoto:Class;
		
		[Embed(source="../assets/icon/feedicon_018.gif")]
		[Bindable] public var PhotoAddRemove:Class;
		
		[Embed(source="../assets/icon/feedicon_003.png")]
		[Bindable] public var PhotoSummaryItem:Class;
		
		[Embed(source="../assets/icon/explorer_refresh.gif")]
		[Bindable] public var ExplorerRefresh:Class;
		
		[Embed(source="../assets/icon/explorer_front.gif")]
		[Bindable] public var ExplorerFront:Class;
		
		[Embed(source="../assets/icon/explorer_back.gif")]
		[Bindable] public var ExplorerBack:Class;
		
		[Embed(source="../assets/icon/explorer_stop.gif")]
		[Bindable] public var ExplorerStop:Class;
		
		[Embed(source="../assets/icon/feedicon_011.png")]
		[Bindable] public var ExplorerRss:Class;
		
		[Embed(source="../assets/icon/rotate_handle.png")]
		[Bindable] public var RotateHandle:Class;
		
		[Embed(source="../assets/icon/resize_handle.png")]
		[Bindable] public var ResizeHandler:Class;
		
		[Embed(source="../assets/icon/posts.png")]
		[Bindable] public var DashPosts:Class;
		
		[Embed(source="../assets/icon/media.png")]
		[Bindable] public var DashMedia:Class;
		
		[Embed(source="../assets/icon/settings.png")]
		[Bindable] public var DashSetting:Class;
		
		[Embed(source="../assets/icon/editBlog.gif")]
		[Bindable] public var DashEditBlog:Class;
		
		[Embed(source="../assets/icon/viewBlog.gif")]
		[Bindable] public var DashViewBlog:Class;
		
		/* [Embed(source="../assets/icon/reader_16.png")]
		[Bindable] public var TrayIcon:Class; */
		
		////////////////////////////////////////////////////////////////////////////////
		//Single-ton setting
		
		private static var _instance:ReaderResource;
			
		public function ReaderResource(access:Privace)
		{
			if(access)
				if(_instance == null) _instance = this;
			else throw new ReaderError(ReaderError.MANAGER_ERROR);
		}	
			
		public static function get instance():ReaderResource
		{
			if(_instance == null) _instance = new ReaderResource(new Privace);
			return _instance;
		}
	}
}
class Privace{}